﻿2026-08-18T23:28:14.8375871Z ##[group]Run $root = $env:SPT_CI_TEST_TMP
2026-08-18T23:28:14.8376136Z [36;1m$root = $env:SPT_CI_TEST_TMP[0m
2026-08-18T23:28:14.8376332Z [36;1mif ([string]::IsNullOrEmpty($root)) {[0m
2026-08-18T23:28:14.8376608Z [36;1m  Write-Host 'PUMP188_DIAG_SINK_DUMP: SPT_CI_TEST_TMP unset — nothing to search'[0m
2026-08-18T23:28:14.8376876Z [36;1m  exit 0[0m
2026-08-18T23:28:14.8376987Z [36;1m}[0m
2026-08-18T23:28:14.8377248Z [36;1m# The sink now lands in the PROCESS TEMP ROOT (`env::temp_dir()`), not under[0m
2026-08-18T23:28:14.8377647Z [36;1m# `spt_home()` — see the role-B step for the teardown that forced the move.[0m
2026-08-18T23:28:14.8378079Z [36;1m# The env-loss bound moves with it: on Windows `temp_dir()` reads TMP then[0m
2026-08-18T23:28:14.8378384Z [36;1m# TEMP and falls back to the profile/Windows temp, so a child that loses the[0m
2026-08-18T23:28:14.8378685Z [36;1m# inherited block (this is the box where `spawn_detached` is documented to[0m
2026-08-18T23:28:14.8378979Z [36;1m# rebuild it) drops its sink THERE. Those two fallbacks are checked[0m
2026-08-18T23:28:14.8379309Z [36;1m# non-recursively — a -Recurse over the whole profile is not a diagnostic,[0m
2026-08-18T23:28:14.8379807Z [36;1m# it is an outage. The canonical-home arm is retired with the move: the sink[0m
2026-08-18T23:28:14.8380073Z [36;1m# no longer resolves through spt_home(). Read only.[0m
2026-08-18T23:28:14.8380261Z [36;1m$found = 0[0m
2026-08-18T23:28:14.8380487Z [36;1mWrite-Host "PUMP188_DIAG_SINK_DUMP: searching $root (recursive) + TMP/TEMP fallbacks"[0m
2026-08-18T23:28:14.8380938Z [36;1mGet-ChildItem -LiteralPath $root -Filter 'pump188-diag.log' -Recurse -File -ErrorAction SilentlyContinue | ForEach-Object {[0m
2026-08-18T23:28:14.8381280Z [36;1m  $found++[0m
2026-08-18T23:28:14.8381471Z [36;1m  $n = (Get-Content -LiteralPath $_.FullName | Measure-Object -Line).Lines[0m
2026-08-18T23:28:14.8381763Z [36;1m  Write-Host "--- PUMP188_DIAG sink: $($_.FullName) ($n lines) ---"[0m
2026-08-18T23:28:14.8382019Z [36;1m  Get-Content -LiteralPath $_.FullName | Write-Host[0m
2026-08-18T23:28:14.8382198Z [36;1m}[0m
2026-08-18T23:28:14.8382379Z [36;1mforeach ($fb in @($env:USERPROFILE, (Join-Path $env:SystemRoot 'Temp'))) {[0m
2026-08-18T23:28:14.8382638Z [36;1m  if ([string]::IsNullOrEmpty($fb)) { continue }[0m
2026-08-18T23:28:14.8382834Z [36;1m  $p = Join-Path $fb 'pump188-diag.log'[0m
2026-08-18T23:28:14.8383013Z [36;1m  if (Test-Path -LiteralPath $p) {[0m
2026-08-18T23:28:14.8383171Z [36;1m    $found++[0m
2026-08-18T23:28:14.8383352Z [36;1m    $n = (Get-Content -LiteralPath $p | Measure-Object -Line).Lines[0m
2026-08-18T23:28:14.8383607Z [36;1m    Write-Host "--- PUMP188_DIAG sink: $p ($n lines) ---"[0m
2026-08-18T23:28:14.8383817Z [36;1m    Get-Content -LiteralPath $p | Write-Host[0m
2026-08-18T23:28:14.8383983Z [36;1m  }[0m
2026-08-18T23:28:14.8384085Z [36;1m}[0m
2026-08-18T23:28:14.8384285Z [36;1mWrite-Host "PUMP188_DIAG_SINK_DUMP: $found sink file(s) (sandbox + temp fallbacks)"[0m
2026-08-18T23:28:14.8390057Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2026-08-18T23:28:14.8390406Z env:
2026-08-18T23:28:14.8390797Z   SPT_CI_TEST_TMP: C:\actions-runner\_work\_temp\spt-test-tmp-32196005249-1-00a16d09b44e4ddf971923699a5d38cc
2026-08-18T23:28:14.8391451Z   TEMP: C:\actions-runner\_work\_temp\spt-test-tmp-32196005249-1-00a16d09b44e4ddf971923699a5d38cc
2026-08-18T23:28:14.8392056Z   TMP: C:\actions-runner\_work\_temp\spt-test-tmp-32196005249-1-00a16d09b44e4ddf971923699a5d38cc
2026-08-18T23:28:14.8392449Z ##[endgroup]
2026-08-18T23:28:15.0775579Z PUMP188_DIAG_SINK_DUMP: searching C:\actions-runner\_work\_temp\spt-test-tmp-32196005249-1-00a16d09b44e4ddf971923699a5d38cc (recursive) + TMP/TEMP fallbacks
2026-08-18T23:28:15.1073197Z PUMP188_DIAG_SINK_DUMP: 0 sink file(s) (sandbox + temp fallbacks)
